package processing_nodes;
import requests.*;


public abstract class ProcessingNode {
	public ProcessingNode()
	{
		next_node = null;
	}
	
	public void set_next_node(ProcessingNode n)
	{
		next_node = n;
	}
	
	public abstract void process_request(Request q);
	
	protected final void process_next_node(Request q)
	{
		if (next_node != null)
			next_node.process_request(q);
	}
	
	private ProcessingNode next_node;
	
}
